package com.qf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.mapper.DtsOrderMapper;
import com.qf.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    DtsOrderMapper dtsOrderMapper;
    @Override
    public long OrderCount() {
        QueryWrapper wrapper = new QueryWrapper();

        wrapper.eq("deleted",false);

        Integer integer = dtsOrderMapper.selectCount(wrapper);
        return integer;

    }

    @Override
    public List<Map<String, Object>> select() {

      List<Map<String,Object>> list = dtsOrderMapper.select();
      return list;
    }
}
